package com.chen.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(description = "商品选项")
@TableName("item_option")
@Data
public class ItemOption {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("选项ID")
    private Long id;

    @TableField("item_id")
    @ApiModelProperty("商品ID")
    private Long itemId;

    @TableField("size_option_1")
    @ApiModelProperty("尺寸选项1")
    private String sizeOption1;

    @TableField("size_option_2")
    @ApiModelProperty("尺寸选项2")
    private String sizeOption2;

    @TableField("color_option_1")
    @ApiModelProperty("颜色分类选项1")
    private String colorOption1;

    @TableField("color_option_2")
    @ApiModelProperty("颜色分类选项2")
    private String colorOption2;

    @TableField("agreement_text")
    @ApiModelProperty("协议文本")
    private String agreementText;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty("更新时间")
    private Date updateTime;
}

